package com.lyon.custom.core;

import java.util.Collection;
import java.util.Map;

/**
 * @author LeeYan9
 * @since 2021-12-01
 */
public class ConfigChangeEvent {

    private Map<String, ConfigChangeItem> configChangeItemMap;

    public ConfigChangeEvent(Map<String, ConfigChangeItem> configChangeItemMap) {
        this.configChangeItemMap = configChangeItemMap;
    }

    public ConfigChangeItem getValue(String key) {
        return configChangeItemMap.get(key);
    }

    public Collection<ConfigChangeItem> getValues() {
        return configChangeItemMap.values();
    }

}
